#include "prec.h"

#include "app.h"
#include "rtcontrol.h"

IMPLEMENT_APP(WPTHApp)

bool WPTHApp::OnInit()
{
	RTC_Init(3, 5);
	wxImage::AddHandler(new wxPNGHandler());

	m_mainFrame = new MainFrame();
	SetTopWindow(m_mainFrame);
	m_mainFrame->Show(true);

	return true;
}

int WPTHApp::OnExit()
{
	RTC_Exit();
	return wxApp::OnExit();
}